package com.example.dto;

import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * <p>
 *   站内信DTO
 * </p>
 * @author 34448
 */
@Data
public class InternalMessageDTO {

    /**
     * 发送者ID
     */
    @NotNull(message = "发送者ID不能为空")
    @ApiModelProperty(value = "发送者ID")
    private Integer senderId;

    /**
     * 接收者ID
     */
    @NotNull(message = "接收者ID不能为空")
    @ApiModelProperty(value = "接收者ID")
    private Integer receiverId;

    /**
     * 主题
     */
    @NotBlank(message = "主题不能为空")
    @ApiModelProperty(value = "主题")
    private String subject;

    /**
     * 正文
     */
    @NotBlank(message = "正文不能为空")
    @ApiModelProperty(value = "正文")
    private String body;
}